/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.dao.impl;

import com.techshop.dao.PhoneTechSpecDao;
import com.techshop.model.PhoneTechnicalSpecifications;
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import redis.client.ValidatePhonePubSubClient;

/**
 *
 * @author hai
 */
public class PhoneTechSpecDaoImpl extends HibernateDaoSupport implements PhoneTechSpecDao{

    @Override
    public boolean insert(PhoneTechnicalSpecifications phoneTechnicalSpecifications) {
           try
        {
            getHibernateTemplate().save(phoneTechnicalSpecifications);          
            return true;
        }
        catch (DataAccessResourceFailureException e)
        {
            System.err.printf("Error: ", e.toString());
            return false;
        }
        
    }
    
}
